package com.ruoyi.finance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.mapper.PaymentDetailMapper;
import com.ruoyi.finance.domain.PaymentDetail;
import com.ruoyi.finance.service.IPaymentDetailService;

/**
 * 付款单详情Service业务层处理
 *
 * @author lvql
 * @date 2024-11-08
 */
@Service
public class PaymentDetailServiceImpl implements IPaymentDetailService
{
    @Autowired
    private PaymentDetailMapper paymentDetailMapper;

    /**
     * 查询付款单详情
     *
     * @param id 付款单详情主键
     * @return 付款单详情
     */
    @Override
    public PaymentDetail selectPaymentDetailById(Integer id)
    {
        return paymentDetailMapper.selectPaymentDetailById(id);
    }

    /**
     * 查询付款单详情列表
     *
     * @param paymentDetail 付款单详情
     * @return 付款单详情
     */
    @Override
    public List<PaymentDetail> selectPaymentDetailList(PaymentDetail paymentDetail)
    {
        return paymentDetailMapper.selectPaymentDetailList(paymentDetail);
    }

    /**
     * 新增付款单详情
     *
     * @param paymentDetail 付款单详情
     * @return 结果
     */
    @Override
    public int insertPaymentDetail(PaymentDetail paymentDetail)
    {
        return paymentDetailMapper.insertPaymentDetail(paymentDetail);
    }

    /**
     * 修改付款单详情
     *
     * @param paymentDetail 付款单详情
     * @return 结果
     */
    @Override
    public int updatePaymentDetail(PaymentDetail paymentDetail)
    {
        return paymentDetailMapper.updatePaymentDetail(paymentDetail);
    }

    /**
     * 批量删除付款单详情
     *
     * @param ids 需要删除的付款单详情主键
     * @return 结果
     */
    @Override
    public int deletePaymentDetailByIds(Integer[] ids)
    {
        return paymentDetailMapper.deletePaymentDetailByIds(ids);
    }

    /**
     * 删除付款单详情信息
     *
     * @param id 付款单详情主键
     * @return 结果
     */
    @Override
    public int deletePaymentDetailById(Integer id)
    {
        return paymentDetailMapper.deletePaymentDetailById(id);
    }
}
